# coding:utf-8
# author    : ['王稣胤 820390693@qq.com', ]
# data      : 2020/3/25 16:14
# software  : PyCharm
# python    : '3.5.3 64bit'
# file      : wsyffw_decos.py
"""
说明文档：

"""
from lib.wsyffw.wsyffw_flask_websockets import route_storage
def websocket_route(route_path):
    def middle(func):
        def wrapper(*args,**kwargs):
            res = func(*args,**kwargs)
            return res

        route_storage.append([route_path, func])
        return wrapper

    return  middle